
// 季节对应筛选项
export const quarter_options = [
    {
      label: '第一季度',
      value: 1,
      months: [1, 2, 3]
    },
    {
      label: '第二季度',
      value: 2,
      months: [4, 5, 6]
    },
    {
      label: '第三季度',
      value: 3,
      months: [7, 8, 9]
    },
    {
      label: '第四季度',
      value: 4,
      months: [10, 11, 12]
    }
  ];
   
  /**
   * 获取季度对应的月份
   * @returns
   */
  export function getQuarterOptionMonths(value) {
    for (let item of quarter_options) {
      if (item.value == value) {
        return item.months;
      }
    }
  }
   
  /**
   * 获取日期对应季度
   * @returns
   */
  export function getQuarterItemOfMonth(month) {
    for (let item of quarter_options) {
      if (item.months.includes(month)) {
        return item;
      }
    }
  }